xen: hook up UBSAN with CONFIG_UBSAN
authorWei Liu <wei.liu2@citrix.com>
Mon, 9 Oct 2017 13:54:58 +0000 (14:54 +0100)
committerWei Liu <wei.liu2@citrix.com>
Mon, 9 Oct 2017 16:05:00 +0000 (17:05 +0100)
commit572a78190403e5f2acbd01fa72c35fafe9700169
tree9bec7ae990f3eea87ba51a6be4bb4ca2005062bc
parente7a95e859cf4da92620b64a04f4d858ea96c2de9
xen: hook up UBSAN with CONFIG_UBSAN

Make the following changes:

1. Introduce CONFIG_UBSAN and other auxiliary options.
2. Introduce Build system rune to filter objects.
3. Make ubsan.c build.

Currently only x86 is supported. All init.o's are filtered out because
of limitation in the build system. There is no user of noubsan-y yet
but it is worth keeping to ease future development.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/Kconfig
xen/Kconfig.debug
xen/Rules.mk
xen/arch/x86/Kconfig
xen/common/Kconfig
xen/common/Makefile
xen/common/ubsan/ubsan.c